package com.it.web.advice;



import com.it.web.commons.ResultInfo;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/*
配置全局异常处理器
 */
@RestControllerAdvice
public class GlobalExceptionHandlerAdvice {
@ExceptionHandler(Exception.class)
    public ResultInfo handleException(){
        return new ResultInfo(500,"执行错误",null);
    }



}
